import request from '/@/utils/request';
const headers = {
	onlyData: true,
};

//获取菜单
export const adminMenu = () => {
	return request({
		url: `admin/menu`,
		method: 'get',
		// headers,
	});
};

//获取数量
export const queryTaskDataByGroupName = (data: any) => {
	return request({
		url: `/task/process-instance/statistics`,
		method: 'post',
		// headers,
        data,
	});
};

//获取我的快捷方式
export const iconAll = () => {
	return request({
		url: `manage/index/icon/all`,
		method: 'get',
	});
};

//保存我的快捷方式
export const iconEdit = (data: any) => {
	return request({
		url: `manage/index/icon/edit`,
		method: 'post',
        data,
		// headers,
	});
};